#ifndef SCORE_H_
#define SCORE_H_

#include "BackgroundColor.h"

class Text;

class Score : public BackgroundColor
{
public:
    Score();
    virtual ~Score();

    void addPlayer(long textId, const std::string& name, const Color& color);
    void updateScore(long textId, int score);

    virtual void handleEvent(const Event& event);

private:
    void addLine(Text* text);

    int nextTextPos;
};

#endif
